package day03_oop_code.com.itheima.d2_innerclass2;

public class Outer {
    public static String schoolName = "黑马程序员";
    public static void inAddr(){
        System.out.println("地址：北京");
    }
    private String hobby;
    private double height;
    public void run(){
        System.out.println("Outer.run");
    }
    public static class Inner{
        private String name;
        private int age;
        public Inner(){

        }
        public Inner(String name, int age){
            this.name = name;
            this.age = age;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
        public void show(){
            System.out.println("schoolName = " + schoolName);
            inAddr();
//            System.out.println("hobby = " + hobby);
//            run();
        }
    }
}
